package com.struct;

import io.netty.channel.Channel;
import org.msgpack.annotation.Message;

/**
 * Created by Administrator on 2016/1/7.
 */
@Message
public class Request<T> {

    private RequestHeader header;

    private byte[] bodyBytes;

    private T body;



    public RequestHeader getHeader() {
        return header;
    }

    public void setHeader(RequestHeader header) {
        this.header = header;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }

    public byte[] getBodyBytes() {
        return bodyBytes;
    }

    public void setBodyBytes(byte[] bodyBytes) {
        this.bodyBytes = bodyBytes;
    }



    @Override
    public String toString() {
        return "Request{" +
                "header=" + header +
                ", body=" + bodyBytes +
                '}';
    }
}
